
<%@ page import="controlecheque.ChequeTerceiros"%>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'chequeTerceiros.label', default: 'ChequeTerceiros')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
	<a href="#list-chequeEmpresa" class="skip" tabindex="-1"><g:message
			code="default.link.skip.label" default="Skip to content&hellip;" /></a>
	<div class="nav" role="navigation">
		<ul>
			<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label" /></a></li>
			<li><g:link controller="chequeTerceiros" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			<li><g:link controller="pesquisa" action="pesquisachqterceiros"><g:message code="nova pesquisa"/></g:link></li>
		</ul>
	</div>
	<div id="list-chequeEmpresa" class="content scaffold-list" role="main">
		<h1>
			<g:message code="default.list.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message" role="status">
				${flash.message}
			</div>
		</g:if>
		<table>
			<thead>
				<tr>
	
					<g:sortableColumn property="numero"
						title="${message(code: 'chequeTerceiros.numero.label', default: 'Numero')}" />
						
					<g:sortableColumn property="valor"
						title="${message(code: 'chequeTerceiros.valor.label', default: 'Valor')}" />

					<g:sortableColumn property="banco"
						title="${message(code: 'chequeTerceiros.banco.label', default: 'Banco')}" />

					<g:sortableColumn property="data"
						title="${message(code: 'chequeTerceiros.data.label', default: 'Data')}" />

					<g:sortableColumn property="cliente"
						title="${message(code: 'chequeTerceiros.destino.label', default: 'Cliente')}" />


				</tr>
			</thead>
			<tbody>
				<g:each var="cheque" in="${cheques}">

						<td>	<g:link controller="chequeTerceiros" action="show" id="${cheque.id}">
								${cheque.numero}
						</g:link></td>

						<td>
							${cheque."valor"}
						</td>

						<td>
							${cheque.banco}
						</td>

						<td>
							<g:formatDate format="dd-MM-yyyy" date="${cheque.data}"/>
						</td>

						<td>
						<g:link controller="cliente" action="show" id="${cheque.cliente.id }">${cheque.cliente}</g:link>
						</td>


					</tr>
				</g:each>
			</tbody>
		</table>
		
		Total em cheques R$ ${total }
	</div>
</body>
</html>
